package com.BlogPark.service.BindMailboxService.Impl;


import com.BlogPark.mapper.UserMapper;
import com.BlogPark.pojo.User;
import com.BlogPark.service.BindMailboxService.BindMailboxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: MFM
 * @Date: 2022/8/10 - 08 - 10 - 21:22
 * @version: 1.0
 */

@Service
public class BindMailboxServiceImpl implements BindMailboxService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int doActivCode(String email) {
        return userMapper.doActivCode(email);
    }

    @Override
    public int updateCodeAndDate(User user) {
        return userMapper.updateCodeAndDate(user);
    }

    @Override
    public int bindMail(User user) {
        int i = userMapper.addUser(user);
        return i;
    }
}
